package com.shopping.mall.core.module.freight.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
* Freight实体类
*
* @author zzy
* @date 2021-08-28
*/
@Data
@TableName("freight")
public class Freight {

    public interface insert{
    }

    public interface update{
    }

    @ApiModelProperty(value="主键")
    @TableId(type = IdType.UUID)
    private String id;

    @ApiModelProperty(value="商品价格")
    @NotNull(message="goods_price不能为空",groups={insert.class})
    private Double goodsPrice;

    @ApiModelProperty(value="运费")
    @NotNull(message="freight_price不能为空",groups={insert.class})
    private Double freightPrice;


}
